]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Fix regression from 071a4e5f83db6a0e0ab01a3
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 2 Mar 2013 17:13:26 +0000 (18:13 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 2 Mar 2013 17:25:34 +0000 (18:25 +0100)
The clutter_threads_add_repaint_func_full need to return TRUE otherwise
they will be only called once.

https://bugzilla.gnome.org/show_bug.cgi?id=695006

src/shell-global.c

index 7e091dbdf2f776b3d92f1b1ab5202fa38cb70d85..889e1461208e3b11eef1fa2b63f1e0a252adb242 100644 (file)
@@ -802,18 +802,22 @@ global_stage_notify_height (GObject    *gobject,
   g_object_notify (G_OBJECT (global), "screen-height");
 }
 
-static void
+static gboolean
 global_stage_before_paint (gpointer data)
 {
   shell_perf_log_event (shell_perf_log_get_default (),
                         "clutter.stagePaintStart");
+
+  return TRUE;
 }
 
-static void
+static gboolean
 global_stage_after_paint (gpointer data)
 {
   shell_perf_log_event (shell_perf_log_get_default (),
                         "clutter.stagePaintDone");
+
+  return TRUE;
 }
 
 /* This is an IBus workaround. The flow of events with IBus is that every time
@@ -938,11 +942,11 @@ _shell_global_set_plugin (ShellGlobal *global,
                     G_CALLBACK (global_stage_notify_height), global);
 
   clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_PRE_PAINT,
-                                         (GSourceFunc) global_stage_before_paint,
+                                         global_stage_before_paint,
                                          NULL, NULL);
 
   clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT,
-                                         (GSourceFunc) global_stage_after_paint,
+                                         global_stage_after_paint,
                                          NULL, NULL);
 
   shell_perf_log_define_event (shell_perf_log_get_default(),